package com.book.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wx
 * @since 2023-10-12 10:33:30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单id
     */
    @TableId(value = "mid", type = IdType.AUTO)
    private Long mid;

    /**
     * 菜单内容
     */
    @TableField("text")
    private String text;

    /**
     * 菜单内容地址
     */
    @TableField("url")
    private String url;

    /**
     * 运营商id
     */
    @TableField("operatorid")
    private Integer operatorid;

    @TableField("perms")
    private String perms;

    /**
     * 预留字段
     */
    @TableField("attr1")
    private String attr1;

    @TableField("attr2")
    private String attr2;

    @TableField("attr3")
    private Long attr3;

    @TableField("attr4")
    private Long attr4;


    public static final String MID = "mid";

    public static final String TEXT = "text";

    public static final String URL = "url";

    public static final String OPERATORID = "operatorid";

    public static final String PERMS = "perms";

    public static final String ATTR1 = "attr1";

    public static final String ATTR2 = "attr2";

    public static final String ATTR3 = "attr3";

    public static final String ATTR4 = "attr4";

}
